<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="/page/template/admin_main.xhtml">

	<ui:define name="title">
			Admin
	</ui:define>

	<ui:define name="content">
		<div class="adminContent">
			<div class="article-container">
				<h3>تعديل الخدمة</h3>
				
				<div class="article-separator"></div>

				<div class="clear-floating"></div>
				
				<h:form id="f1">
					<p:messages id="messages" />
					
					<p:outputLabel id="ol1" value="العنوان" for="it1"/>
					<p:inputText id="it1" value="#{embassyServicesHandlerBean.serviceParent.serviceTitle}" required="true" requiredMessage="الرجاء ادخال العنوان" />
					<div class="clear-floating"/>
					<br/>
					
					<p:outputLabel id="ol2" value="الطلبات" for="servicesPickList"/>
					<p:pickList id="servicesPickList" value="#{embassyServicesHandlerBean.pickListServices}" 
						var="service" itemLabel="#{service.title}" itemValue="#{service.id}" converter="ServiceConverter"
						required="true" requiredMessage="الرجاء اختيار طلب" />
					<br/>
					
					<p:commandButton id="cb1" action="#{embassyServicesHandlerBean.editEmbassyParentService}" value="حفظ" ajax="false" />
				</h:form>
				
			</div>
			<div class="clear-floating"></div>
			
		</div>
	</ui:define>

</ui:composition>
</html>